package com.hedy.order.feign.fallback;

import com.hedy.order.feign.UserFeignClient;
import dto.UserDTO;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component //注册容器
public class UserFeignCilentFallback implements UserFeignClient {
    @Override
    public UserDTO getUserInfo(Integer uid) {
        return new UserDTO(0,"error",new Date());
    }
}
